<?php if (!defined('THINK_PATH')) exit();?>
<?php if(is_array($make_users)): foreach($make_users as $mm=>$make_users): ?><li class="item-content">
    <div class="item-media">
        <img src="<?php echo ($make_users['head_img']); ?>">
    </div>
    <div class="item-inner">
        <a href="<?php echo U('Apply/expert_page',array('id'=>$make_users['apply_id']));?>">
            <div class="item-title-row">
                <div class="item-title"><?php echo ($make_users['name']); ?>
                    <font>预约时间
                    <?php if($make_users['select_time'] == 1): ?>星期一<?php endif; ?>
                    <?php if($make_users['select_time'] == 2): ?>星期二<?php endif; ?>
                    <?php if($make_users['select_time'] == 3): ?>星期三<?php endif; ?>
                    <?php if($make_users['select_time'] == 4): ?>星期四<?php endif; ?>
                    <?php if($make_users['select_time'] == 5): ?>星期五<?php endif; ?>
                    <?php if($make_users['select_time'] == 6): ?>星期六<?php endif; ?>
                    <?php if($make_users['select_time'] == 0): ?>星期日<?php endif; ?>
                    </font>
                    <?php switch($make_users['status']): case "1": ?><a style="display: inline-block;float: right" onclick="success_yuyue(this, <?php echo ($make_users['id']); ?>);" class="button button-fill">结束预约</a><?php break;?>
                    <?php case "2": ?><a style="display: inline-block;float: right;background: #ccc" class="button button-fill">已完成</a><?php break;?>
                    <?php case "3": ?><a style="display: inline-block;float: right;background: #ccc" class="button button-fill">已取消</a><?php break; endswitch;?>

                </div>
            </div>
            <p>专家电话：<?php echo ($make_users['mobile']); ?> </p>
            <div class="item-subtitle">预约地点：<?php echo ($make_users['address']); ?></div>
        </a>
        <?php switch($make_users['status']): case "1": ?><a style="display: inline-block;float: left;margin-top: 10px;" id="success_yuyue" onclick="success_yuyue(this, <?php echo ($make_users['id']); ?>);" class="button button-fill">结束预约</a>
        <a style="display: inline-block;float: right;margin-top: 10px;" id="release_yuyue" onclick="release_yuyue(this, <?php echo ($make_users['id']); ?>);" class="button button-fill">取消预约</a>
        <a style="display: none;float: right;background: #ccc;margin-top: 10px;" id="release" class="button button-fill">已取消</a> 
        <a style="display: none;float: right;background: #ccc;margin-top: 10px;" id="success" class="button button-fill">已完成</a>
        <a style="display: none;float: left;margin-top: 10px;" id="discuss" href="<?php echo U('Apply/discuss_list',array('id'=>$make_users['make_id']));?>" class="button button-fill">评论</a><?php break;?>
        <?php case "2": ?><a style="display: inline-block;float: right;background: #ccc;margin-top: 10px;" class="button button-fill">已完成</a>
        <a style="display: inline-block;float: left;margin-top: 10px;" href="<?php echo U('Apply/discuss_list',array('id'=>$make_users['make_id']));?>" class="button button-fill">评论</a><?php break;?>
        <?php case "3": ?><a style="display: inline-block;float: right;background: #ccc;margin-top: 10px;" class="button button-fill">已取消</a><?php break; endswitch;?>
    </div>
</li><?php endforeach; endif; ?>